/*
 ============================================================================
 Name		: stopwatchApp.cpp
 Author	  : Huang.haiyang
 
     This is free software; you can redistribute it and/or
     modify it under the terms of the GNU Lesser General Public
	 License as published by the Free Software Foundation; either
     version 2 of the License, or (at your option) any later version.
 
     This software is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     Lesser General Public License for more details.
     
 Description : Main application class
 ============================================================================
 */

// INCLUDE FILES
#include	"app\stopwatchApp.h"
#include	"app\stopwatchDocument.h"

// ================= MEMBER FUNCTIONS =======================

// ---------------------------------------------------------
// CstopwatchApp::AppDllUid()
// Returns application UID
// ---------------------------------------------------------
//
TUid CStopwatchApp::AppDllUid() const
	{
	return KUidstopwatch;
	}

// ---------------------------------------------------------
// CstopwatchApp::CreateDocumentL()
// Creates CStopwatchDocument object
// ---------------------------------------------------------
//
CApaDocument* CStopwatchApp::CreateDocumentL()
	{
	return CStopwatchDocument::NewL(*this);
	}

// ================= OTHER EXPORTED FUNCTIONS ==============
//
// ---------------------------------------------------------
// NewApplication() 
// Constructs CstopwatchApp
// Returns: created application object
// ---------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
	{
	return new CStopwatchApp;
	}

// ---------------------------------------------------------
// E32Dll(TDllReason) 
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
// ---------------------------------------------------------
//
GLDEF_C TInt E32Dll(TDllReason)
	{
	return KErrNone;
	}

